// Causing conflicts with 3rd party apps using adodb
/**
* phpGACL main class
*
* Class gacl should be used in applications where only querying the phpGACL
* database is required.
*
* @package phpGACL
* @author Mike Benoit <ipso@snappymail.ca>
*/
class gacl {
/*
--- Private properties ---
*/
/** @var boolean Enables Debug output if true */
var $_debug = FALSE;
/**
* Joomla usage
*/
var $_debugLog = null;
/*
--- Database configuration. ---
*/
/** @var string Prefix for all the phpgacl tables in the database */
var $_db_table_prefix = '';
/** @var string The database type, based on available ADODB connectors - mysql, postgres7, sybase, oci8po See here for more: http://php.weblogs.com/adodb_manual#driverguide */
var $_db_type = 'mysql';
/** @var string The database server */
var $_db_host = 'localhost';
/** @var string The database user name */
var $_db_user = 'root';
/** @var string The database user password */
var $_db_password = '';
/** @var string The database name */
var $_db_name = 'gacl';
/** @var object An ADODB database connector object */
var $_db = '';
/*
* NOTE: This cache must be manually cleaned each time ACL's are modified.
* Alternatively you could wait for the cache to expire.
*/
/** @var boolean Caches queries if true */
var $_caching = FALSE;
/** @var boolean Force cache to expire */
var $_force_cache_expire = TRUE;
/** @var string The directory for cache file to eb written (ensure write permission are set) */
var $_cache_dir = '/tmp/phpgacl_cache'; // NO trailing slash
/** @var int The time for the cache to expire in seconds - 600 == Ten Minutes */
var $_cache_expire_time=600;
/** @var string A switch to put acl_check into '_group_' mode */
var $_group_switch = '_group_';
/**
* Constructor
* @param array An arry of options to oeverride the class defaults